<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.20"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>JCSDK Objective-C API Reference for iOS/macOS: JCPushTemplate类 参考</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">JCSDK Objective-C API Reference for iOS/macOS
   &#160;<span id="projectnumber">2.3.3</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.20 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">构造函数</a> &#124;
<a href="interface_j_c_push_template-members.html">所有成员列表</a>  </div>
  <div class="headertitle">
<div class="title">JCPushTemplate类 参考<div class="ingroups"><a class="el" href="group___xE6_x8E_xA8_xE9_x80_x81_xE6_xA8_xA1_xE5_x9D_x97.html">推送模块</a></div></div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#import &lt;<a class="el" href="_j_c_push_template_8h_source.html">JCPushTemplate.h</a>&gt;</code></p>
<div class="dynheader">
类 JCPushTemplate 继承关系图:</div>
<div class="dyncontent">
 <div class="center">
  <img src="interface_j_c_push_template.png" alt=""/>
 </div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
构造函数</h2></td></tr>
<tr class="memitem:a40ed1398d2fc520edbfe15438638354d"><td class="memItemLeft" align="right" valign="top">(id)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_push_template.html#a40ed1398d2fc520edbfe15438638354d">initWithToken:voip:debug:</a></td></tr>
<tr class="separator:a40ed1398d2fc520edbfe15438638354d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a341d6aa355944c2604a7b32c7ef7dea0"><td class="memItemLeft" align="right" valign="top">(id)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_push_template.html#a341d6aa355944c2604a7b32c7ef7dea0">initWithCall:expiration:</a></td></tr>
<tr class="separator:a341d6aa355944c2604a7b32c7ef7dea0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afc2cb717179221facae91eaa5ee6f0ad"><td class="memItemLeft" align="right" valign="top">(id)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_push_template.html#afc2cb717179221facae91eaa5ee6f0ad">initWithText:tip:sound:expiration:</a></td></tr>
<tr class="separator:afc2cb717179221facae91eaa5ee6f0ad"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af64754fdbdb3e23e4d39b11821ba78dc"><td class="memItemLeft" align="right" valign="top">(NSString *)&#160;</td><td class="memItemRight" valign="bottom">- <a class="el" href="interface_j_c_push_template.html#af64754fdbdb3e23e4d39b11821ba78dc">getData</a></td></tr>
<tr class="separator:af64754fdbdb3e23e4d39b11821ba78dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">详细描述</h2>
<div class="textblock"><p>推送模板类 </p>
</div><h2 class="groupheader">函数文档</h2>
<a id="af64754fdbdb3e23e4d39b11821ba78dc"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af64754fdbdb3e23e4d39b11821ba78dc">&#9670;&nbsp;</a></span>getData</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (NSString*) getData </td>
          <td></td>
          <td class="paramname"></td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>推送数据字符串 </p>

</div>
</div>
<a id="a341d6aa355944c2604a7b32c7ef7dea0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a341d6aa355944c2604a7b32c7ef7dea0">&#9670;&nbsp;</a></span>initWithCall:expiration:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) initWithCall: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>sound</em></td>
        </tr>
        <tr>
          <td class="paramkey">expiration:</td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置通话推送信息 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">sound</td><td>声音资源，例如 ring.m4r，为 nil 时则用默认声音 </td></tr>
    <tr><td class="paramname">seconds</td><td>消息过期时间 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="afc2cb717179221facae91eaa5ee6f0ad"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afc2cb717179221facae91eaa5ee6f0ad">&#9670;&nbsp;</a></span>initWithText:tip:sound:expiration:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) initWithText: </td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>infoType</em></td>
        </tr>
        <tr>
          <td class="paramkey">tip:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>tip</em></td>
        </tr>
        <tr>
          <td class="paramkey">sound:</td>
          <td></td>
          <td class="paramtype">(NSString *)&#160;</td>
          <td class="paramname"><em>sound</em></td>
        </tr>
        <tr>
          <td class="paramkey">expiration:</td>
          <td></td>
          <td class="paramtype">(int)&#160;</td>
          <td class="paramname"><em>seconds</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置消息推送信息 </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">infoType</td><td>消息类型 </td></tr>
    <tr><td class="paramname">tip</td><td>提示内容，不包含发送者，例如 “xx:发送了条消息”，其中"发送了条消息"为tip值，如果要提示发送内容，则填 nil </td></tr>
    <tr><td class="paramname">sound</td><td>声音资源，例如 ring.m4r </td></tr>
    <tr><td class="paramname">seconds</td><td>消息过期时间 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a40ed1398d2fc520edbfe15438638354d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a40ed1398d2fc520edbfe15438638354d">&#9670;&nbsp;</a></span>initWithToken:voip:debug:</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">- (id) initWithToken: </td>
          <td></td>
          <td class="paramtype">(NSData *)&#160;</td>
          <td class="paramname"><em>deviceToken</em></td>
        </tr>
        <tr>
          <td class="paramkey">voip:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>voip</em></td>
        </tr>
        <tr>
          <td class="paramkey">debug:</td>
          <td></td>
          <td class="paramtype">(bool)&#160;</td>
          <td class="paramname"><em>debug</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td></td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>设置苹果服务器获取的token </p><dl class="params"><dt>参数</dt><dd>
  <table class="params">
    <tr><td class="paramname">deviceToken</td><td>token 值 </td></tr>
    <tr><td class="paramname">voip</td><td>是否是 voip token </td></tr>
    <tr><td class="paramname">debug</td><td>是否是 debug 模式 </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<hr/>该类的文档由以下文件生成:<ul>
<li>JCSDKOC/JCSDKOC/JCPush/<a class="el" href="_j_c_push_template_8h_source.html">JCPushTemplate.h</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="http://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.8.20
</small></address>
</body>
</html>
